<template>
  <div class="bottomBtn">
    <el-button @click="handleBack" type="warning" plain class="toHome"
      >返回首页</el-button
    >
    <el-button @click="handleSave" type="primary" class="next"
      >保存并进入下一步</el-button
    >
  </div>
</template>
<script>
export default {
  methods:{
    handleBack(){
      this.$router.replace({
        path: "/home",
      });
    },
    handleSave(){
      this.$emit('handleSave')
    }
  }
};
</script>
<style lang="scss" scoped>
.bottomBtn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding:30px 0;
  .el-button {
    height: 30px;
    line-height: 0.5;
  }
  .toHome {
    width: 200px;
  }
  .next {
    width: 200px;
  }
}
</style>
